/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {
      // 0 ～ 1000 这个范围内的数字都是px单位
      spacing: Array.from({ length: 1000 }).reduce((map, _, index) => {
        map[index] = `${index}px`;
        return map;
      }, {}),
      fontSize: ({ theme }) => ({
        ...theme("spacing"),
        // xs: '10px',
        // sm: '12px',
        // base: '14px',
        // lg: '16px',
        // xl: '18px'
      }),
      colors: {
        default: '#333333',
        while: '#fff',
        'light-gray': '#C4C4C4',
        grey: '#999999',
        'dark-grey': '#666666',
        orange: '#FE8010',
        red: '#FB624A',
        green: '#00C25F',
        blue: '#2490FD',
        golden: '#FFF0CD'
      },
      borderRadius: {
        sm: '2px',
        DEFAULT: '4px',
        md: '6px',
        lg: '8px',
        xl: '12px'
      }
    },
  },
  plugins: [],
}
